YT Purge Extension
==================
Copyright © 2026 -  Falcon Gaming Studios, LLC - All Rights Reserved.
This file is free and open source.
It may be used, copied, and redistributed in any form (modified or unmodified), in any project or future works, personal or commercial.
Unmodified copies must keep this copyright notice and permission notice intact.
Modified copies require that the copyright notice above, including this permission notice, be removed or replaced.
THIS FILE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. IN NO EVENT SHALL THE
AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY ARISING FROM ITS USE.


Full user manual: YT-Purge-Extension-Manual.pdf (included in this download).


What it does
------------
- Maintains a local blacklist of YouTube channels.
- Matches by stable channel ID, @handle, or exact display name.
- Hides matching video/channel cards on YouTube.
- Hides channel-specific Shorts shelves such as "Latest Shorts from CHANNEL".
- Resolves individual Shorts back to their source channel when YouTube hides channel metadata in search shelves.
- Adds PURGE buttons directly to resolved Shorts cards.
- Adds a PURGE button to many YouTube cards.
- Adds a PURGE CHANNEL button next to the channel area on video pages.
- The browser toolbar popup can purge the current channel instantly.
- Manual quick-add accepts:
  - UC... channel IDs
  - @handles
  - youtube.com/channel/... URLs
  - youtube.com/@handle URLs
  - exact display names
- Export/import blacklist as JSON.

Privacy
-------
No server. No analytics. No external requests by the extension.
The blacklist is stored in browser local extension storage.

Install - Opera / Chrome / Edge / Brave / Vivaldi
--------------------------------------------------
1. Extract this ZIP to a permanent folder.
2. Open your browser's Extensions page.
3. Enable Developer mode.
4. Choose "Load unpacked".
5. Select the extracted "YT Purge Extension" folder.
6. Reload any already-open YouTube tabs once.

Install - Firefox
-----------------
For temporary testing:
1. Extract this ZIP.
2. Open about:debugging#/runtime/this-firefox
3. Click "Load Temporary Add-on..."
4. Select manifest.json.

Notes
-----
- YouTube changes its DOM regularly. The extension deliberately relies mostly on
  channel links (/channel/UC... and /@handle) instead of brittle CSS class names.
- Channel ID is the strongest identifier.
- @handle is normally reliable.
- Exact display-name blocking is supported as a fallback, but two unrelated
  channels can share the same display name.

Version 1.3.0
-------------
- Adds PURGE CHANNEL directly to YouTube channel pages beside Subscribe.
- Supports newer yt-lockup-view-model result cards.
- Resolves missing uploader metadata through YouTube oEmbed using the exact video ID.
- Uses videoDetails as a fallback when oEmbed does not expose enough information.
- Applies the same uploader resolution to Shorts and normal video results.


Version 1.3.1
-------------
- Added the custom "no shit" extension icon for the toolbar and extension listing.


Version 1.4.0
-------------
- Popup: search box filters the blacklist by name, @handle, or channel ID.
- Popup: "Unpurge" removes a channel directly in the window, with a 10-second Undo.
- Popup: list sorted newest first and shows the date each channel was purged.
- Comment filter (popup > COMMENT FILTER):
  - Hides fake-looking bot accounts such as @Benny_fnh8fu
    (Name + separator + short random letter/digit tail).
  - Optional: hide auto-generated @user-xxxxxx accounts.
  - Hides comments written by purged channels.
  - Optional placeholder with Show / Always allow instead of removing.
  - PURGE button on every comment header.


Version 1.5.0
-------------
- HIDE ALL SHORTS button in the popup: hides Shorts shelves, cards, the Shorts
  channel tab, the sidebar entry and Shorts search chips. Opening a /shorts/ link
  redirects to the normal /watch player.
- HIDE LIKE THIS button next to commenter names: builds a pattern from that
  handle's shape (e.g. @Benny_fnh8fu -> Capitalized name + "_" + 5-7 char
  letter/digit tail), shows how many commenters on the page it matches,
  lets you edit it, then hides all matching commenters.
- Popup lists saved name patterns with Remove, plus manual regex entry.
